package com.baway.base.app

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.baway.base.BuildConfig
import com.tencent.mmkv.MMKV

/**
 * Author: Jason Zhang
 * Date: 2025/8/16
 * Desc: 基础APP
 */
open class BaseApp: Application(){

    override fun onCreate() {
        super.onCreate()

        //初始化ARouter
        if (BuildConfig.DEBUG){
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)

        //初始阿花MMKV
        MMKV.initialize(this)

    }

    override fun onLowMemory() {
        super.onLowMemory()
    }

    override fun onTerminate() {
        super.onTerminate()
    }


}